package com.grademaster.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.grademaster.entity.Majors;
import com.grademaster.vo.MajorVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【majors(专业表)】的数据库操作Mapper
* @createDate 2024-06-25 13:57:06
* @Entity generator.domain.Majors
*/
@Mapper
public interface MajorsMapper extends BaseMapper<Majors> {
    /**
     * 根据专业名称分页查询专业信息
     * @param page
     * @param pageSize
     * @param majorName
     * @return
     */
    List<MajorVO> findMajorsWithPagination(
            @Param("page") int page,
            @Param("pageSize") int pageSize,
            @Param("majorName") String majorName
    );

    /**
     * 根据专业名称统计专业数量
     * @param majorName
     * @return
     */
    Integer countMajors(@Param("majorName") String majorName);

}




